<div class="search-box">
  <nz-input-group
    nzSearch
    [nzSuffix]="suffixIconSearch"
  >
    <input
      type="text"
      nz-input
      placeholder="请输入关键字"
      [(ngModel)]="searchKey"
      (keyup)="onSearch()"
    />
  </nz-input-group>
  <ng-template #prefixIcon>
    <i nz-icon nzType="menu" nzTheme="outline"></i>
  </ng-template>
  <ng-template #suffixIconSearch>
    <i nz-icon nzType="search" (click)="onSearch()"></i>
  </ng-template>
  <ul [hidden]="!searchList.length || hideSearch">
    <li *ngFor="let item of searchList" (click)="onSelect(item)">
      {{ item.buildName }}
    </li>
  </ul>
</div>
